GtkDialog: rejigger headerbar handling
authorMatthias Clasen <mclasen@redhat.com>
Thu, 17 Jul 2014 16:49:57 +0000 (12:49 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 17 Jul 2014 16:49:57 +0000 (12:49 -0400)
commit7b407145412aa236e0a5efe5a9be4f6d4ce1fd0d
tree26286aaa73b5dc5bf35fdab54605ccfb3dee0f22
parentdf007fb982f7e8928770d64b57b3b14986799518
GtkDialog: rejigger headerbar handling

We can't avoid calling set_titlebar in buildable_add_child, since
GtkBuilder assumes that it can e.g. call grab_default at the end,
which only works if the widget is inside a toplevel at that point.

Instead, drop the titlebar and clean up priv->headerbar in constructed
if we find that we don't want a headerbar.
gtk/gtkdialog.c